<%@ page language="java" pageEncoding="UTF-8"%>
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link
	href="${ pageContext.request.contextPath }/static/bootstrap-3.3.7-dist/css/bootstrap.min.css"
	rel="stylesheet">
<script type="text/javascript">
function xg(){
	var r = confirm("确定修改吗？");
	if (r == true) {
		window.location.href = "${pageContext.request.contextPath}/admin/adminCategory_update.action";
		alert("修改成功");
	} else {
		alert("取消修改");
		window.location.reload();
	}
}
</script>
</head>

<body>
	<form
		action="${pageContext.request.contextPath}/admin/adminCategory_update.action"
		method="post" style="margin-top: 60px;">
		<input type="hidden" name="cid" value="${existCategory.cid}" />
		<table cellSpacing="1" cellPadding="5" width="50%" align="center"
			bgColor="#eeeeee" style="border: 1px solid #8ba7e3; height: 250px;"
			border="0">
			<tr height="50">
				<td align="center" bgColor="#afd1f3" height="26" colspan="4"><strong>编辑一级分类</strong>
				</td>
			</tr>
			<tr>
				<td width="30%" align="center" bgColor="#f5fafe">一级分类名称：</td>
				<td bgColor="#f5fafe" colspan="3"><input type="text"
					name="cname"
					style="height: 38px; width: 200px; border-radius: 4px;"
					value="${existCategory.cname}" /></td>
			</tr>
			<tr bgColor="#f5fafe">
				<!--colSpan="表示一个表哥横跨几个单元格 -->
				<td align="center" colSpan="4"><input type="submit"   onclick="xg()"
					class="btn btn-primary" value="确定" />
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					<button type="reset" class="btn">重置</button>
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <!--history.go(-1)返回上一个页面  -->
					<input type="button" class="btn btn-success"
					onclick="history.go(-1)" value="返回" /></td>
			</tr>
		</table>
	</form>
</body>
</HTML>